package com.wanmait.baohan.mapper;

import com.wanmait.baohan.pojo.ReimbursementApplication;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface ReimbursementApplicationMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(ReimbursementApplication record);

    int insertSelective(ReimbursementApplication record);

    ReimbursementApplication selectByPrimaryKey(@Param("applicationId") Integer applicationId, @Param("applicationEnable") Integer applicationEnable);

    int updateByPrimaryKeySelective(ReimbursementApplication record);

    int updateByPrimaryKey(ReimbursementApplication record);

    //条件查询申请人名字，返回信息
    List<ReimbursementApplication> selectByStaffName(@Param("reimbursementApplication") ReimbursementApplication reimbursementApplication, @Param("beginDate") Date beginDate, @Param("endDate") Date endDate);

    ReimbursementApplication verificationTravel();
    void updateRe(@Param("id")Integer id,@Param("enable")Integer enable);
}